package mars.handler.test;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @ClassName: FamilyAddrBean
 * @Description: TODO(我家地图 位置)
 * @author itchenqi@gmail.com
 * @date 2014-8-21 上午11:54:02
 */
public class FamilyAddrBean implements Parcelable {
	/** 我家地图地址" **/
	private String attr;
	/** 楼栋id **/
	private int buildingId;
	/** 楼栋名称 **/
	private String buildingName;
	/** 单元id **/
	private int unitId;
	/** 单元名称 **/
	private String unitName;
	/** 门号 **/
	private String houseNo;

	public String getAttr() {
		return attr;
	}

	public void setAttr(String attr) {
		this.attr = attr;
	}

	public int getBuildingId() {
		return buildingId;
	}

	public void setBuildingId(int buildingId) {
		this.buildingId = buildingId;
	}

	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	public int getUnitId() {
		return unitId;
	}

	public void setUnitId(int unitId) {
		this.unitId = unitId;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getHouseNo() {
		return houseNo;
	}

	public void setHouseNo(String houseNo) {
		this.houseNo = houseNo;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.attr);
		dest.writeInt(this.buildingId);
		dest.writeString(this.buildingName);
		dest.writeInt(this.unitId);
		dest.writeString(this.unitName);
		dest.writeString(this.houseNo);
	}

	public FamilyAddrBean() {
	}

	private FamilyAddrBean(Parcel in) {
		this.attr = in.readString();
		this.buildingId = in.readInt();
		this.buildingName = in.readString();
		this.unitId = in.readInt();
		this.unitName = in.readString();
		this.houseNo = in.readString();
	}

	public static final Parcelable.Creator<FamilyAddrBean> CREATOR = new Parcelable.Creator<FamilyAddrBean>() {
		public FamilyAddrBean createFromParcel(Parcel source) {
			return new FamilyAddrBean(source);
		}

		public FamilyAddrBean[] newArray(int size) {
			return new FamilyAddrBean[size];
		}
	};
}
